<template>
  <div id="app">
    <region-map 
      ref="regionMapRef"
      :mapName="'dalian'" 
      :chartStyle="{ width: '1800px', 'height': '500px'}"></region-map>
  </div>
</template>

<script>
import RegionMap from './components/region-map.vue'

import dalianJson from './components/dalian'
import pointListJson from './components/pointList'

export default {
  name: "App",
  components: {
    RegionMap,
  },
  data() {
    return {
      customOption: {}
    };
  },
  mounted(){
    const sourceData = JSON.parse(JSON.stringify(dalianJson))
    const pointList = JSON.parse(JSON.stringify(pointListJson))
    this.$refs.regionMapRef.drew(sourceData, pointList)
  }
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
